package com.wdh.cloud.order.web.controller;

import com.wdh.cloud.order.config.EmailConfig;
import com.wdh.cloud.order.config.GlobalCfg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private EmailConfig emailConfig;

    @Autowired
    private GlobalCfg globalCfg;

    @RequestMapping("/getEmail")
    public EmailConfig getEmail(){
        return emailConfig;
    }

    @RequestMapping("/getGlobalCfg")
    public GlobalCfg getGlobalCfg(){
        return globalCfg;
    }
}
